package com.fh.controller;

import com.fh.service.UserAddrService;
import com.fh.vo.ResultVo;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("useraddr")
@CrossOrigin
@Api(tags = "地址")
public class UserAddrController {


    @Resource
    private UserAddrService userAddrService;


    @GetMapping("list")
    public ResultVo selectUserAddr(Integer userId){

        return  userAddrService.selectUserAddr(userId);
    }

}
